package com.itheima.user.service;

import com.itheima.user.mapper.UserMapper;
import com.itheima.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @作者 itcast
 * @创建日期 2020/11/8 9:49
 **/
@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public User findById(Long id){
        return userMapper.findById(id);
    }
}
